package wiki.kaizen.cloud.shiro.stateless.exception;

import lombok.Getter;

/**
 * 异常状态及描述类
 * @author  xeepoo
 * */
public class StatelessException extends RuntimeException{

    @Getter
    private int code;

    private String message;

    public StatelessException(int code ,String msg){
        this.code = code;
        this.message  = msg;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
